﻿using System.Web.Mvc;
using IterationLife.Extensions.ControllerBase;
using IterationLife.FootballTeaching.Queries;
using IterationLife.PlatformBackEnd.AppServices.Contracts.FootballTeachings;
using IterationLife.PlatformBackEnd.AppServices.Dtos.FootballTeachings;

namespace IterationLife.PlatformBackEnd.WebSite.Areas.FootballTeachings.Controllers
{
    /// <summary>
    /// 课程控制器
    /// </summary>
    public class CourseController : FormControllerBase<CourseDto, CourseQuery>
    {
        /// <summary>
        /// 初始化课程控制器
        /// </summary>
        /// <param name="service">课程服务</param>
        public CourseController(ICourseService service)
            : base(service)
        {
            CourseService = service;
        }

        /// <summary>
        /// 课程服务
        /// </summary>
        public ICourseService CourseService { get; private set; }

        /// <summary>
        /// 表单
        /// </summary>
        public ActionResult Grid()
        {
            return PartialView("Parts/Grid");
        }

    }
}